<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>可拖动验证滑块</title>
    <script src="sliderTools.js"></script>
</head>
<body>
<div class="slider"></div>
<script>
    let slider = new SliderTools({
        el:document.querySelector('.slider')
    })
    slider.on('complete',() => {
        alert('验证完成');
    })
</script>
</body>
</html>
